package vista;
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaEquiposGanadores extends JFrame {
	private JPanel jPanel1;
	private JLabel lblResultados;
	private JTable tblListado;
	private JScrollPane jspListado;
	
	
	public VentanaEquiposGanadores(){
		super("Resultados de los Juegos Panamericanos");
		initGUI();
		
	}

	private void initGUI() {
		try {
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, BorderLayout.CENTER);
				jPanel1.setLayout(null);
				{
					lblResultados = new JLabel();
					jPanel1.add(lblResultados);
					lblResultados.setText("Tabla de posiciones de los Equipos");
					lblResultados.setBounds(12, 28, 315, 21);
				}
				{
					jspListado = new JScrollPane();
					jPanel1.add(jspListado);
					jspListado.setBounds(12, 69, 518, 229);
					{
						tblListado = new JTable();
						jspListado.setViewportView(tblListado);
					}
				}
			}
			{
				this.setSize(552, 340);
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	
	public void setListado(AbstractTableModel abstractTableModel){
		tblListado.setModel(abstractTableModel);
	}
	
	public void mostrarMensaje(String mensaje){
		JOptionPane.showMessageDialog(this, mensaje);
	}
	
}
